// import factoryNameMap from '@/locales/factoryNameMap.json'
// export const useIdModelFormat = (id: string | any[]) => {
//     const key1:any = id.slice(0,8)
//     const key2:any = id.slice(0,9)
//     const identity = (factoryNameMap as any) ?.[key1] || (factoryNameMap as any) ?.[key2] || {name:"未知",factory:"未知"}
//     return identity
// }
export const useIdModelFormat = (id: string | any[]) => {
    const local = useLocal()
    const key1:any = id.slice(0,8)
    const key2:any = id.slice(0,9)
    const identity = (local.droneModelList as any) ?.[key1] || (local.droneModelList as any) ?.[key2] || {name:"未知",factory:"未知"}
    return identity
}